//
//  FCSRCommonDefine.h
//  SBCProject
//
//  Created by sobey on 2020/5/14.
//  Copyright © 2020 ZhouYou. All rights reserved.
//

#ifndef FCSRCommonDefine_h
#define FCSRCommonDefine_h

#define FCSRColorFromHX(rgbValue) [UIColor \
colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define kKeyWindow [[[UIApplication sharedApplication]delegate]window]

#define kServiceError @"糟糕,服务器竟然崩溃啦~"
#define kNetworkError @"似乎已断开与互联网的连接~"

#define kFCSR_IMGURL(URL) [FCSRCommonTools getImgUrl:URL]
#define kFCSR_IMG(name) [UIImage imageNamed:name]

#define kFCSR_PingFangBold(size1) [UIFont fontWithName:@"PingFangSC-Semibold" size:size1]

#define kFCSR_PingFangMedium(size1) [UIFont fontWithName:@"PingFangSC-Medium" size:size1]

#define kFCSR_PingFangRegular(size1) [UIFont fontWithName:@"PingFangSC-Regular" size:size1]

#define kWidthRate SBCSCREEN_WITH/375


#endif /* FCSRCommonDefine_h */
